home *** CD-ROM | disk | FTP | other *** search
/ Micromanía: 150 Juegos 2010 / 150Juegos_16.iso / Shareware / Shape Smash / shape-smash.swf / scripts / Code / WINDOWS / _cn203.as next >
Encoding:
Text File  |  2010-05-14  |  1.4 KB  |  59 lines

  1. package Code.WINDOWS
  2. {
  3.    import Code.LIB._gt710;
  4.    import flash.display.MovieClip;
  5.    import flash.events.Event;
  6.    
  7.    public class _cn203 extends _gt710
  8.    {
  9.       private static const stShow:int = 0;
  10.       
  11.       private static const stLogo:int = 1;
  12.       
  13.       private static const stHide:int = 2;
  14.       
  15.       private var timer:int;
  16.       
  17.       private var iState:int = 0;
  18.       
  19.       private var logo:MovieClip;
  20.       
  21.       public function _cn203(param1:Array = null)
  22.       {
  23.          iState = 0;
  24.          super(param1);
  25.          alpha = 1;
  26.          iState = stHide;
  27.       }
  28.       
  29.       override public function onEnterFrame(param1:Event) : void
  30.       {
  31.          super.onEnterFrame(param1);
  32.          switch(iState)
  33.          {
  34.             case stShow:
  35.                if(!_fl746)
  36.                {
  37.                   logo.play();
  38.                   iState = stLogo;
  39.                }
  40.                break;
  41.             case stLogo:
  42.                if(MovieClip(logo).currentFrame >= MovieClip(logo).currentScene.numFrames)
  43.                {
  44.                   logo.stop();
  45.                   iState = stHide;
  46.                   this.timer = 0;
  47.                }
  48.                break;
  49.             case stHide:
  50.                if(this.timer++ == 10)
  51.                {
  52.                   hide();
  53.                }
  54.          }
  55.       }
  56.    }
  57. }
  58.  
  59.